<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/css/cart.css">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="/lib/requirejs/require.min.js" data-main="/js/cart"></script>
    <title>Document</title>
</head>
<body>
    <header></header>
    <main>
        <div class="wrap">
            <div class="order_step">
                <div class="step1">我的购物车</div>
                <div class="step2">填写核对订单信息</div>
                <div class="step3">成功提交订单</div>
            </div>
            <div class="order_info">
                <div class="order_bill">
                    <div class="order_title">
                        <div class="lump"></div>
                        <p>我的购物车</p>
                    </div>
                    <div class="order_text">
                        <div class="address">
                            <table border="0" cellpadding="0" cellspacing="0" id="tbl_cart">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>商品名称</th>
                                        <th>规格</th>
                                        <th>数量</th>
                                        <th>单价（元）</th>
                                        <th>小计</th>
                                        <th width="50">操作</th>
                                    </tr>
                                </thead>
                                <tbody class="cart_body" id="cart_body">
                                   
                                    
                                </tbody>
                                <tfoot>
                                    <tr>
                                        <td colspan="5">合计</td>
                                        <td class="total" colspan="2">0.00</td>
                                    </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="order_operate">
                <div class="order_text">
                    
                    <!--<div class="submit left"><a href="flow.php?step=clear">清空购物车</a></div>-->
                    <div class="submit left"><a href="/html/list.html">继续购物</a></div>
                    <div class="submit"><a href="flow.php?step=checkout">下单结算</a></div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </main>
    <div class="end">
        
    </div>
    <footer></footer>

    <script type="text/html" id="cart-template">
        {{each cart curr}}
            <tr class="tr">
                <td class="id">{{curr.id}}</td>
                <td align="left">
                    <div class="goods_name">
                        <a href="/html/detail.html" target="_blank" class="name"><img src="{{curr.img}}" style="width:200px;height:200px;"></a>
                        <a href="/html/detail.html" target="_blank" ><span>{{curr.title}}<span></a>
                    </div>
                </td>
                <td>{{curr.size}}</td>
                <td>
                    <div style="width:122px;height:29px;margin:0 auto;">
                        <input id="icon_subtract" class="minus color_75" type="button" name="" value="-">
                        <input id="number" class="sum color_75" type="text" name="number" value={{curr.amount}} onblur="changePrice()">
                        <input id="icon_add" class="plus color_75" type="button" name="" value="+">
                    </div>
                </td>
                <td>￥{{curr.price}}.00</td>
                <td id="subtotal">{{(curr.price*curr.amount)}}.00</td>
                <td><a href="javascript:void(0);" class="link-del"></a></td>
            </tr>
            
        {{/each}}
    </script>
</body>
</html>